<template>
  <view class="dzxg" @click.stop.capture="likeHandel">
    <image
      src="../static/img/axin_t.png"
      mode="widthFix"
      :style="[{ display: value == true ? 'none' : 'block' }]"
    />
    <image
      src="../static/img/dzaixin.png"
      mode="widthFix"
      :style="[{ display: value == true ? 'block' : 'none' }]"
    />
  </view>
</template>

<script>
export default {
  props: {
    value: {
      type: Boolean,
      default: () => false,
    },
    item: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {
      animationLike: [],
    };
  },
  created() {},
  methods: {
    likeHandel() {
      
      if (!this.value) {
        this.$emit("handel", true);
        console.log(this.item);
      } else {
        this.$emit("handel", false);
      }
    },
  },
};
</script>

<style lang="scss" scoped>
.dzxg {
  width: 86rpx;
  height: 86rpx;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  position: relative;
  > image {
    position: absolute;
    left: 50%;
    top: 54%;
    width: 40rpx;
    transform: translate(-50%, -50%) !important;
  }
}
</style>
